package zombies;

public class Galpon {
	
	private volatile int cantZombies = 0;
	public Galpon(){
		
	}
	synchronized public void incrementarCuentaZombies() {
		cantZombies++;
		System.out.println("Galpon: ha entrado un zombie mas");
		System.out.println("Galpon: actualmente hay " + cantZombies + " zombies");
	}
	synchronized public void decrementarCuentaZombies() {
		cantZombies--;
	}
	synchronized int getCantidadZombies() {
		return cantZombies;
	}
}
